import {
  request
} from "../utils/http.js"; //导入我们封装的请求方法。

//抖音小程序 神椰推荐
export const getCardList = (data) => { //接收页面调用传递过来的参数
  return request({ //调用请求方法
    url: "/shenye/douyin/classification/v1/getShenyeRecommendList", //传入请求地址
    method: "GET", //传入请求方法
    data: data //这里的参数来自于页面调用时，传过来的参数  
  })
}
//店铺详情
export const shopDetail = (id) => {
  return request({
    url: `/shenye/paradise/douyin/shop/detail/${id}`,
    method: "GET",
  })
}
//获取店铺详情用户信息
export const shopDetailUserMsg = (id) => {
  return request({
    url: `/shenye/paradise/douyin/shop/getShopDetailUserMsg/${id}`,
    method: "GET",
  })
}
//查询店铺nfr列表V2
export const shopNfrLs = (data) => {
  return request({
    url: `/shenye/paradise/douyin/shop/nfr/list/v2`,
    method: "GET",
    data
  })
}
//店铺资质图片列表
export const qualificationsImgs = (id) => {
  return request({
    url: `/shenye/paradise/douyin/shop/qualificationsImgs/${id}`,
    method: "GET",
  })
}
//获取神椰抖音分类 详情
export const classification = (data) => {
  return request({
    url: `/shenye/douyin/classification/v1/detail`,
    method: "GET",
    data
  })
}
//抖音小程序 附近推荐
export const getShenyeRecommendDistanceList = (data) => {
  return request({
    url: `/shenye/douyin/classification/v1/getShenyeRecommendDistanceList`,
    method: "GET",
    data
  })
}
//抖音小程序 图文广告列表
export const shenyeDouyinAdvertiseList = (data) => {
  return request({
    url: `/shenye/douyin/classification/v1/getShenyeDouyinAdvertiseList`,
    method: "GET",
    data
  })
}
//抖音小程序 分类导航列表
export const shenyeDouyinNavigationList = (data) => {
  return request({
    url: `/shenye/douyin/classification/v1/getShenyeDouyinNavigationList`,
    method: "GET",
    data
  })
}
// 查询店铺nfr详情V2
export const getShopNfrDetail = (data) => {
  return request({
    url: '/shenye/paradise/douyin/shop/nfr/detail/v2',
    method: "GET",
    data
  })
}
// 查询店铺nfr详情
export const paradiseShopNfrDetail = (data) => {
  return request({
    url: '/shenye/paradise/shop/nfr/detail',
    method: "GET",
    data
  })
}
// 查询店铺nfr支付页面详情
export const paradiseShopNfrPayDetail = (data) => {
  return request({
    url: '/shenye/paradise/douyin/shop/nfr/pay/detail',
    method: "GET",
    data
  })
}
// 查询待支付订单支付页面详情
export const paradiseShopNfrToPayDetail = (data) => {
  return request({
    url: '/shenye/paradise/nfr/to/pay/detail',
    method: "GET",
    data
  })
}
// 商家数字权益卡用户支付
export const paradiseShopNfrPay = (data) => {
  return request({
    url: '/merchant/equity/order/shop/nfr/pay',
    method: "POST",
    type: 1,
    data
  })
}
// 抖音神椰搜索列表 全部
export const listSearch = (data) => {
  return request({
    url: '/shenye/douyin/classification/v1/list/search',
    method: "POST",
    data
  })
}
// 分类赚卡查询
export const merchantEquityCardListByTag = (data) => {
  return request({
    url: '/shenye/douyin/classification/v1/getMerchantEquityCardListByTag',
    method: "GET",
    data
  })
}
// 查询权益卡支付结果
export const getPayResult = (orderId) => {
  return request({
    url: `/equity/order/pay/result/${orderId}`,
    method: "GET",
  })
}
//判断首页样式显示
export const indexType = (data) => {
  return request({
    url: `/douyin/index/type`,
    method: "GET",
    data
  })
}
//获取转盘获得奖品
export const indexLottery = (data) => {
  return request({
    url: `/douyin/index/lottery`,
    method: "POST",
    data
  })
}
//抽奖记录
export const lotteryList = (data) => {
  return request({
    url: `/douyin/index/lottery/list`,
    method: "GET",
    data
  })
}
// 查询抖音支付 订单id
export const orderDyNfrToPay = (data) => {
  return request({
    url: '/merchant/equity/order/dy/nfr/to/pay',
    method: "POST",
    type:1,
    data
  })
}
// 抖音小视频区域信息下拉
export const douyinVideoSelect = (data) => {
  return request({
    url: '/douyin/video/area/v1/getDouyinVideoSelect',
    method: "GET",
    data
  })
}
// 设置游玩路线
export const douyinVideoWorksRoutesV1 = (data) => {
  return request({
    url: '/douyin/video/talent/works/routes/v1',
    method: "POST",
    data
  })
}
// 城市详情列表 搜索页面
export const douyinVideoTalentWorkInfoByPage = (data) => {
  return request({
    url: '/douyin/video/area/v1/getDouyinVideoTalentWorkInfoByPage',
    method: "get",
    data
  })
}
// 查询地区名称
export const worksRoutesAreaName = (code) => {
  return request({
    url: `/douyin/video/talent/works/routes/v1/area/name/${code}`,
    method: "get"
  })
}
